<template>
  <div class="home">
    <el-container>
      <el-header class="head">
        <div class="header"></div>
      </el-header>
      <el-container>
        <el-scrollbar>
          <el-menu
            default-active="2"
            :router="true"
            class="el-menu-vertical-demo"
            @open="handleOpen"
            @close="handleClose"
          >
            <el-menu-item index="/index/lifecycle">
              <i class="el-icon-menu"></i>
              <span slot="title">桌面</span>
            </el-menu-item>

            <el-submenu index="/">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>视频管理</span>
              </template>
              <el-menu-item-group>
                <template slot="title"></template>
                <el-menu-item index="/about">About</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group>
                <template slot="title"></template>
                <el-menu-item index="/about">About</el-menu-item>
              </el-menu-item-group>
            </el-submenu>

            <el-submenu index="/index/vbind">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>成员管理</span>
              </template>
              <el-menu-item-group>
                <template slot="title">分组一</template>
                <el-menu-item index="/about">About</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group>
                <template slot="title">分组二</template>
                <el-menu-item index="/about">About</el-menu-item>
              </el-menu-item-group>
            </el-submenu>

            <el-submenu index="/index/von">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>系统管理</span>
              </template>
              <el-menu-item-group>
                <template slot="title">分组一</template>
                <el-menu-item index="/about">About</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group>
                <template slot="title">分组二</template>
                <el-menu-item index="/von">About</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
          </el-menu>
        </el-scrollbar>
        <el-container>
          <el-main> <router-view></router-view></el-main>
          <!-- <el-footer>Footer</el-footer> -->
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  name: "IndexView",
  components: {},
  methods: {
    handleOpen() {},
    handleClose() {},
  },
};
</script>

<style>
.el-menu-vertical-demo {
  text-align: left;
}
.head {
  width: 100%;
  height: 64px;
  background: #515a6e;
}
.header {
  padding: 0 50px;
  line-height: 64px;
}
</style>